all:pause_demo hardware_interrupt_demo sigaction_demo volatile_demo SIGCHLD_demo

SIGCHLD_demo:SIGCHLD_demo.cc
	g++ -o $@ $^ -std=c++11 

volatile_demo:volatile_demo.cc
	g++ -o $@ $^ -std=c++11 -O3

pause_demo:pause_demo.cc
	g++ -o $@ $^ -std=c++11 

hardware_interrupt_demo:hardware_interrupt_demo.cc
	g++ -o $@ $^ -std=c++11

sigaction_demo:sigaction_demo.cc
	g++ -o $@ $^ -std=c++11

.PHONY:clean
clean:
	rm -f pause_demo hardware_interrupt_demo sigaction_demo volatile_demo SIGCHLD_demo